package com.qianying.mapper;

import com.qianying.entity.OrderFinanceOtherCharge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhangcr
 * @since 2025-07-28
 */
@Mapper
public interface OrderFinanceOtherChargeMapper extends BaseMapper<OrderFinanceOtherCharge> {

    // 根据父ID删除子表数据
    @Delete("DELETE FROM order_finance_other_charge WHERE order_finance_id = #{parentId}")
    void deleteByParentId(Long parentId);

}
